<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>个人中心</title>
<link href="HNUST/../../reception/css/mui.min.css" rel="stylesheet" />
	
		  <script src="HNUST/../../reception/js/jquery.js"></script>
<link rel="stylesheet" type="text/css"
	href="HNUST/../../reception/css/style.css">
<link rel="stylesheet" type="text/css"
	href="HNUST/../../reception/css/person.css">
<script type="text/javascript"
	src="HNUST/../../reception/js/Adaptive.js"></script>
</head>
<script type="text/javascript">
    function person(){
    	
			$.ajax({
				url:"/HNUST/strategy/persons",
				type:"POST",
				dataType:"json",
				
				success:function(data){
					if(data.msg == '1'){
						alert("退出成功");
						window.location.href="person";
					}
					
				},
				error:function(data){
					alert("退出失败");
					location.reload(true);
				}
			});
		}
    </script>

<body>

	<div class="head">
		<div class="head-img">
			<img src="HNUST/../../reception/images/person/head.png">
			<%
				if (session.getAttribute("userid") == null) {
			%>
			<p>
				<span class="line"><a href="login" style="color: red">登录</a></span><span><a
					href="register" style="color: red">注册</a></span>
			</p>

			<%
				} else {
			%>
			<p>
				<span><%=session.getAttribute("userid")%>></span>
			</p>
			<%
				}
			%>
		</div>
		<div class="logo-dbs">
			<div class="dbs-img">
				<img src="HNUST/../../reception/images/icon/logo.png">
			</div>
			<p>全球低价游，满足你世界梦！</p>
		</div>
		<div class="bt">
			<p class="bt-lf">0关注</p>
			<p>0粉丝</p>
		</div>
	</div>

	<div class="person">
		<div class="pn-lt">
			<p>
				<img class="img-lf"
					src="HNUST/../../reception/images/person/lt_1.png">我的行程<img
					class="img-rt" src="HNUST/../../reception/images/icon/arr_rt.png">
			</p>
		</div>
		<div class="pn-lt">
			<p>
				<img class="img-lf"
					src="HNUST/../../reception/images/person/lt_2.png">我的帖子<img
					class="img-rt" src="HNUST/../../reception/images/icon/arr_rt.png">
			</p>
		</div>
		<div class="pn-lt">
			<p>
				<img class="img-lf"
					src="HNUST/../../reception/images/person/lt_3.png">我的收藏<img
					class="img-rt" src="HNUST/../../reception/images/icon/arr_rt.png">
			</p>
		</div>
		<div class="pn-lt">
			<p>
				<img class="img-lf"
					src="HNUST/../../reception/images/person/lt_4.png">我的问答<img
					class="img-rt" src="HNUST/../../reception/images/icon/arr_rt.png">
			</p>
		</div>
		<div class="pn-lt">
			<p>
				<img class="img-lf"
					src="HNUST/../../reception/images/person/lt_6.png">我的折扣<img
					class="img-rt" src="HNUST/../../reception/images/icon/arr_rt.png">
			</p>
		</div>
		<div class="jg"></div>
	</div>
	<div class="mui-content-padded">
		<button id='login' class="mui-btn mui-btn-block mui-btn-primary"
			onclick="person();">退出登录</button>
	</div>
</body>

</html>